package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.hgxd.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel(description = "用户角色")
@TableName("sys_user_role")
@NoArgsConstructor
@AllArgsConstructor
public class SysUserRole  {
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "角色id")
	@TableField("role_id")
	private Long roleId;

	@ApiModelProperty(value = "用户id")
	@TableField("user_id")
	private Long userId;

	@ApiModelProperty(value = "逻辑删除(0:可用 1:已删除)",required = true)
	@TableLogic
	@TableField("is_deleted")
	private Integer isDeleted;
}

